<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class anw_model extends CI_Model
{
    var $_lang='';
	function __construct() {
        parent::__construct();
        $lang =  $this->lang->lang();
        if($lang=='en'){
            $this->_lang='_en';
        }else{
            $this->_lang='';
        }
    }
	 /*
     * @author : Tran Thi Kim Que
     * @method : get all product category level
     * @param  : $id_cat - ID category news
     * @date   : 09/04/2013
     * @modify :
     */
    function getProductCategoryLevel($parent_id=0){
        $this->db->where('parent_id',$parent_id);
		$this->db->where('bl_active',1);
        $this->db->order_by('nb_order','ASC');
        return $this->db->get('product_category')->result();
    }
	
	
}